package com.lxxie.test;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @Description 违法预警信息  JZB01
 * @Date 2021/7/29 10:45
 * @Created by xielx
 */
public class IllegalWarning extends IllegalResult implements Serializable {
        private static final long serialVersionUID = 854300511909598237L;
        private String yjlx;     //预警类型
        private String yjzlx;    //预警子类型
        @JSONField(format = "yyyy-MM-dd HH:mm:ss")
        private Date yjsj;       //预警时间
        private String dldm;     //道路代码
        private String szdd;     //所在地点
        private String sbbh;     //设备编号
        private String sbmc;     //设备名称
        private String sblx;     //设备类型
        private String szczdm;   //所在村组代码 此代码由农交安提供，请直接查看数据类型： NCA03
        private String hpzl;     //号牌种类
        private String hphm;     //号牌号码
        private String sfzmhm;    //身份证名号码
        private String xm;    //姓名
        private String xzqh;    //行政区划    国标码
        private List<String> tp = new ArrayList<>();     //图片

        public String getYjlx() {
                return yjlx;
        }

        public void setYjlx(String yjlx) {
                this.yjlx = yjlx;
        }

        public String getYjzlx() {
                return yjzlx;
        }

        public void setYjzlx(String yjzlx) {
                this.yjzlx = yjzlx;
        }

        public Date getYjsj() {
                return yjsj;
        }

        public void setYjsj(Date yjsj) {
                this.yjsj = yjsj;
        }

        public String getDldm() {
                return dldm;
        }

        public void setDldm(String dldm) {
                this.dldm = dldm;
        }

        public String getSzdd() {
                return szdd;
        }

        public void setSzdd(String szdd) {
                this.szdd = szdd;
        }

        public String getSbbh() {
                return sbbh;
        }

        public void setSbbh(String sbbh) {
                this.sbbh = sbbh;
        }

        public String getSbmc() {
                return sbmc;
        }

        public void setSbmc(String sbmc) {
                this.sbmc = sbmc;
        }

        public String getSblx() {
                return sblx;
        }

        public void setSblx(String sblx) {
                this.sblx = sblx;
        }

        public String getSzczdm() {
                return szczdm;
        }

        public void setSzczdm(String szczdm) {
                this.szczdm = szczdm;
        }

        public String getHpzl() {
                return hpzl;
        }

        public void setHpzl(String hpzl) {
                this.hpzl = hpzl;
        }

        public String getHphm() {
                return hphm;
        }

        public void setHphm(String hphm) {
                this.hphm = hphm;
        }

        public String getSfzmhm() {
                return sfzmhm;
        }

        public void setSfzmhm(String sfzmhm) {
                this.sfzmhm = sfzmhm;
        }

        public String getXm() {
                return xm;
        }

        public void setXm(String xm) {
                this.xm = xm;
        }

        public String getXzqh() {
                return xzqh;
        }

        public void setXzqh(String xzqh) {
                this.xzqh = xzqh;
        }
        
        public List<String> getTp() {
                if (null == tp) {
                        return Collections.emptyList();
                }
                return tp;
        }

        public void setTp(List<String> tp) {
                this.tp = tp;
        }

        public String getBm(){
                return this.getYjxh();
        }

        public void addTp(String randomPic) {
                this.tp.add(randomPic);
        }
}
